<?php
include_once("connect.php");
$query=mysql_query("select * from order_user where id=1");
$rs=mysql_fetch_array($query);

$email=$rs['email'];
$idc_name=$rs['idc_name'];
$sex=$rs['sex'];
$country=$rs['country'];
$city=$rs['city'];
$address=$rs['address'];
$postcode=$rs['postcode'];
$tel=$rs['tel'];
$qq=$rs['qq'];
$updat_time=$rs['updat_time'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="hello" />
<meta name="description" content="Hello" />
<title>order_user_show</title>

<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="css/fancybox.css" />

<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/i18n/grid.locale-cn.js" type="text/javascript"></script>
<script src="js/jquery.jqGrid.min.js" type="text/javascript"></script>
<script src="js/jquery.fancybox.js" type="text/javascript"></script>
<script src="js/jquery.message.js" type="text/javascript"></script>

<style type="text/css">
table{width:96%; margin:20px auto; border-collapse:collapse;}
table td{line-height:26px; padding:2px; padding-left:8px; border:1px solid #b6d6e6;}
.table_title{height:26px; line-height:26px; background:url(css/btn_bg.gif) repeat-x bottom; font-weight:bold; text-indent:.3em; outline:0;}
.table_label{background:#e8f5fe; text-align:right; }
.btn{height:24px; background:url(css/btn_bg.gif) repeat-x; padding:0 4px; font-size:12px; border:1px solid #ccc; cursor:pointer; margin-left:3px}
.input{border:1px solid #369; background:#ffc; padding:2px}
.msg{padding-left:30px; margin-top:20px}
textarea{font-size:12px}
</style>

<script type="text/javascript">
$(function(){
	$("#edit_btn").click(function(){
		$.fancybox({
			'type':'ajax',
			'href':'order_user_edit.php'
		});
	});

});
</script>
</head>

<body>

<div id="main">
  <!--
  <h2 class="top_title"><a href="#">我的帐户</a></h2>
  
  <div class="msg"><strong>提示</strong>：点击表格中字段对应的内容即可进行在线编辑。</div>
  -->
  
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <thead>
    <tr class="table_title">
      <td colspan="4"><span class="open"></span>我的帐户</td>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td class="table_label" width="30%">登录帐号(邮件)：</td>
      <td class="edit" id="email" colspan="3"><?php echo $email; ?></td>
    </tr>
    <tr>
      <td class="table_label">姓名：</td>
      <td class="edit" id="idc_name" colspan="3"><?php echo $idc_name; ?></td>
    </tr> 

    <tr>
      <td class="table_label">性别：</td>
      <td class="edit" id="sex" colspan="3"><?php echo $sex; ?></td>
    </tr> 
    <tr>
      <td class="table_label">所在国家：</td>
      <td class="edit" id="country" colspan="3"><?php echo $country; ?></td>
    </tr> 
    <tr>
      <td class="table_label">城市：</td>
      <td class="edit" id="city" colspan="3"><?php echo $city; ?></td>
    </tr> 
    <tr>
      <td class="table_label">地址：</td>
      <td class="edit" id="address" colspan="3"><?php echo $address; ?></td>
    </tr> 
    <tr>
      <td class="table_label">邮编：</td>
      <td class="edit" id="postcode" colspan="3"><?php echo $postcode; ?></td>
    </tr> 
    <tr>
      <td class="table_label">联系电话：</td>
      <td class="edit" id="tel" colspan="3"><?php echo $tel; ?></td>
    </tr> 	
    <tr>
      <td class="table_label">腾讯qq号码：</td>
      <td class="edit" id="qq" colspan="3"><?php echo $qq; ?></td>
    </tr> 
	<tr>
      <td class="table_label">最后更新时间：</td>
      <td class="edit" id="updat_time" colspan="3"><?php echo $updat_time; ?></td>
    </tr> 	
	
  </tbody>
</table>
<br />
<input type="button" class="btn" id="edit_btn" value="修 改" />

</div>

</body>
</body>
</html>